import { defHttp } from '/@/utils/http/axios';

enum Api {
  alarmInfo = '/alarm/index/index',
  alarmLogTopNInfo = '/alarm/index/getAlarmLogTopN',
  alarmLogLineInfo = '/alarm/index/getAlarmLogLine',
}
/**
 * 查询设备仪表盘相关数据
 * @param params
 */
export const getAlarmInfo = (params) => defHttp.get({ url: Api.alarmInfo, params }, { isTransformResponse: false });

/**
 * 查询采集设备数据趋势
 * @param params
 */
export const getAlarmLogTopNInfo = (params) => defHttp.get({ url: Api.alarmLogTopNInfo, params }, { isTransformResponse: false });

/**
 * 查询采集设备数据趋势
 * @param params
 */
export const getAlarmLogLineInfo = (params) => defHttp.get({ url: Api.alarmLogLineInfo, params }, { isTransformResponse: false });
